package com.sumainfor.pc.market.controller;

import com.sumainfor.pc.market.service.HouCaiWuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;

/**
 * @author Meng
 * @ClassName HouCaiWuController
 * @date 2020/3/17 15:53
 * @description: TODO
 */
@Controller
@RequestMapping("/key/HouCaiWu")
public class HouCaiWuController {
    @Autowired
    HouCaiWuService houCaiWuService;

    @PostMapping("/getHoulist")
    @ResponseBody
    public List<Map<String,Object>> getHoulist(@RequestBody Map<String,Object> params){
        return houCaiWuService.getHoulist(params);
    }

}
